<%@ page contentType="application/vnd.ms-excel" pageEncoding="ISO-8859-1"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%response.setHeader("Content-Disposition", "attachment;filename=Rekap Pendaftar Sidang Final.xls"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Laporan</title>

</head>
<body>

         
				
<div class="form_description">
<h2 align="center">Rekap Pendaftar Final Laboratorium ${namaLab}, periode :
    <c:forEach items="${periodeYudisium}" var="periodeYudisium">
    <c:if test='${(periodeYudisium.periode == periode)}'>${periodeYudisium.periode}</c:if>>
    </c:forEach> 
</h2>
<p></p>
					
</div>

<table id = "rounded-corner" width="100%" border="2" bordercolor="#000000">
				
<thead>
<tr>
<th width="50" class="table-header-repeat line-left">No</th>
<th width="100" class="table-header-repeat line-left ">NRP</th>
<th width="180" class="table-header-repeat line-left ">Nama</th>
<th width="180" class="table-header-repeat line-left ">Judul</th>
<th width="100" class="table-header-repeat line-left ">Tanggal</th>
<th width="100" class="table-header-repeat line-left ">Waktu</th>
<th width="100" class="table-header-repeat line-left ">Tempat</th>
<th width="180" class="table-header-repeat line-left ">Pembimbing 1</th>
<th width="180" class="table-header-repeat line-left ">Pembimbing 2</th>
<th width="180" class="table-header-repeat line-left ">Penguji 1</th>
<th width="180" class="table-header-repeat line-left ">Penguji 2</th>
</tr>
</thead>
<tbody>
<% int i = 1;%>
<c:forEach items="${rekapJadwalFinal}" var="rekapJadwalFinal">
<tr bgcolor="#FFFFFF">            
    <td align="center"><% out.print(i); i++; %></td>
    <td>${rekapJadwalFinal.ta.user.idUser}</td>
    <td>${rekapJadwalFinal.ta.user.namaUser}</td>
    <td>${rekapJadwalFinal.ta.judul}</td>
    <td>${rekapJadwalFinal.tglSidang}</td>
    <td>${rekapJadwalFinal.wktSidang}</td>
    <td>${rekapJadwalFinal.tempatSidang}</td>
    <td>
        <c:forEach items="${namaDosen}" var="namaDosen">
        <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.ta.pembimbing1)}">
            ${namaDosen.user.namaUser}
        </c:if>
        </c:forEach>
    </td>
    <td>
        <c:if test="${(rekapJadwalFinal.ta.pembimbing2 != '0')}">
        <c:forEach items="${namaDosen}" var="namaDosen">
        <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.ta.pembimbing2)}">
        ${namaDosen.user.namaUser}
        </c:if>
        </c:forEach>
        </c:if>
        <c:if test="${(rekapJadwalFinal.ta.pembimbing2 != null)}">${rekapJadwalFinal.ta.pembimbingLuar}</c:if>
    </td>
    <td>
        <c:forEach items="${namaDosen}" var="namaDosen">
        <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.penguji1)}">
            ${namaDosen.user.namaUser}
        </c:if>
        </c:forEach>
    </td>
    <td>
        <c:forEach items="${namaDosen}" var="namaDosen">
        <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.penguji2)}">
            ${namaDosen.user.namaUser}
        </c:if>
        </c:forEach>
    </td>
</tr>
</c:forEach> 		 
</tbody>  
</table>          
</body> 
</html>
